<template>
  <div>
      <div class="topBtn">
            <div class="sizeBig"><span>公告管理</span></div>
            <div>
                <el-button type="primary" @click="addNotice"><i class="iconfont icon-addNew"></i> 新增</el-button>
                <el-button type="primary" icon="el-icon-edit" @click="checkChange">修改</el-button>
                <el-button type="primary" icon="el-icon-delete" @click="remove">删除</el-button>
            </div>
        </div>
        <div class="message">
            <p class="character">1.按照产品工艺要求，在系统维护对应所有的生产工序，方便MES系统做流程节点管控和生产数据采集。 <span class="skip">查看帮助文档</span></p>
        </div>
        <div class="inputcontent">
            <el-input v-model="search" placeholder="请输入内容" class="inSearch"></el-input>
            <el-select v-model="value" placeholder="请选择" class="select">
                <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
                </el-option>
            </el-select>
            <el-select v-model="value" placeholder="请选择" class="select">
                <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
                </el-option>
            </el-select>
            <el-button type="primary">查询</el-button>
            <div class="iconSearch"></div>
        </div>
        <div class="tablesize">
            <TopTable></TopTable>
        </div>
         <div class="block"> 
            <el-pagination
            :page-sizes="[10, 20, 50, 100]"
            :page-size="10"
             @current-change="handleCurrentChange"
            layout="total, sizes, prev, pager, next, jumper"
            :total="total">
            </el-pagination>
        </div>
        <el-radio-group v-model="radio1" class="changeType">
          <el-radio-button label="物料"></el-radio-button>
          <el-radio-button label="组建管理"></el-radio-button>
        </el-radio-group>
        <div class="tablesize">
            <BottomTable></BottomTable>
        </div>
         <div class="block"> 
            <el-pagination
            :page-sizes="[10, 20, 50, 100]"
            :page-size="10"
             @current-change="handleCurrentChange"
            layout="total, sizes, prev, pager, next, jumper"
            :total="total">
            </el-pagination>
        </div>
        <div class="details">
          <el-collapse>
            <el-collapse-item>
              <template slot="title">
                <i class="header-icon el-icon-sort"></i>操作详情
              </template>
              <div>与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；</div>
              <div>在界面中一致：所有的元素和结构需保持一致，比如：设计样式、图标和文本、元素的位置等。</div>
            </el-collapse-item>
          </el-collapse>
        </div>
  </div>
</template>

<script>
import TopTable from './components/bomDocument/topTable'
import BottomTable from './components/bomDocument/bottomTable'
export default {
  name:'bomDocument',
  data () {
    return {
        radio1: '物料',
        activeName: '-1',
         options: [{
          value: '选项1',
          label: '黄金糕'
        }, {
          value: '选项2',
          label: '双皮奶'
        }, {
          value: '选项3',
          label: '蚵仔煎'
        }, {
          value: '选项4',
          label: '龙须面'
        }, {
          value: '选项5',
          label: '北京烤鸭'
        }],
        value: ''
    }
  },
  components:{
        TopTable,
        BottomTable
    },
}
</script>

<style lang="scss" scoped>
.sizeBig{
    font-size: 16px;
}
.topBtn{
    height: 60px;
    width: 98%;
    margin: 0 auto;
    line-height: 60px;
    display: flex;
    justify-content: space-between;
}
.message{
    width:98%;
    margin: 0 auto;
    height:60px;
    background:rgba(255,255,255,1);
    border:1px solid rgba(238,238,238,1);
    font-size:14px;
    .character{
        margin: 20px 0 21px 20px;
        color:#999999;
        .skip{
            color: #0095FF;
            margin-left:10px;
            cursor:pointer; 
        }
    }
}
.inputcontent{
    width:98%;
    margin: 0 auto;
    height: 80px;
    position: relative;
    padding-top:21px;
    box-sizing: border-box; 
    .iconSearch{
        position: absolute;
        left: 277px;
        top:30px;
        width:20px;
        height: 20px;
        background-image: url('./image/搜索.png') ;
        background-repeat: no-repeat;
        cursor:pointer; 
    }
    .inSearch{
        width:308px;
        height:40px;
    }
}
.tablesize{
    width:98%;
    margin: 0 auto;
}
.changeType{
  margin:0 0 10px 20px;
}
.block{
    text-align: right;
    margin:28px 20px 20px 0; 
}
.details{
  width: 99%;
  margin: 0 auto 50px;
}
/deep/ .el-collapse-item__header{
  color:#0095FF;
}
.header-icon{
  margin: 0 5px 0 10px;
}
</style>